package net.lahuobao.finance.dao;

import java.util.ArrayList;
import java.util.Date;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import net.lahuobao.finance.entity.score.Score;

@Repository("scoreDao")
public interface ScoreMapper {
    int deleteByPrimaryKey(Integer scoreId);

    int insert(Score record);

    int insertSelective(Score record);

    Score selectByPrimaryKey(Integer scoreId);

    ArrayList<Score> selectListByUserId(Integer userId);

    ArrayList<Score> selectListByCondition(@Param("start") Date start, @Param("end") Date end, @Param("fullName") String fullName);

    ArrayList<Score> selectListByLoginToday(Integer userId);

    int updateByPrimaryKeySelective(Score record);

    int updateByPrimaryKey(Score record);
}